﻿using System;
using DotNetApp.Toolkit.Requests;
using WinSource.Model;

namespace WinSource.Client
{
    public class WinSourceClient
    {
        #region Methods

        public void GetArticles(Action<GetArticlesRequestArgs> getArticlesCallback)
        {
            GetArticlesFromRssRequest getArticlesFromRssRequest = new GetArticlesFromRssRequest(getArticlesCallback);
            getArticlesFromRssRequest.Send();
        }

        public void GetVideos(Action<GetVideosRequestArgs> getVideosCallback)
        {
            GetVideosRequest getVideosRequest = new GetVideosRequest(getVideosCallback);
            getVideosRequest.Send();
        }

        #endregion
    }
}
